home *** CD-ROM | disk | FTP | other *** search
- on AngleFun SpLine
- puppetSprite(SpLine, 1)
- set the trails of sprite SpLine to 1
- set x to the width of sprite SpLine
- set y to the height of sprite SpLine
- set r to float(sqrt((x * x) + (y * y)))
- set theta to -float(atan(float(y) / float(x)))
- set x0 to the left of sprite SpLine
- set y0 to the top of sprite SpLine
- repeat with n = 0 to 75
- set the foreColor of sprite SpLine to random(250)
- set theta to theta + 0.01745
- set x1 to x0 + (r * cos(theta))
- set y1 to y0 - (r * sin(theta))
- drawLine(SpLine, y0, x0, y1, x1)
- updateStage()
- startTimer()
- repeat while the timer < 1
- nothing()
- end repeat
- end repeat
- repeat with n = 0 to 75
- set the foreColor of sprite SpLine to random(250)
- set theta to theta - 0.01745
- set x1 to x0 + (r * cos(theta))
- set y1 to y0 - (r * sin(theta))
- drawLine(SpLine, y0, x0, y1, x1)
- updateStage()
- startTimer()
- repeat while the timer < 1
- nothing()
- end repeat
- end repeat
- puppetSprite(SpLine, 0)
- set the trails of sprite SpLine to 0
- updateStage()
- end
-